package com.git.hui.yinshua.biz.order.dao.entity;

import com.git.hui.yinshua.api.model.order.PtOrderStatusEnum;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
 * 拼团订单
 *
 * @author YiHui
 * @date 2024/7/2
 */
@Data
public class PtOrderEntity implements Serializable {

    private Integer id;

    /**
     * 拼团单
     */
    private String code;

    /**
     * 团长uid
     */
    private Integer uid;
    /**
     * 标题
     */
    private String title;

    /**
     * 商品id / 商品套餐id
     */
    private Integer goodsId;

    /**
     * 拼团价格
     */
    private Integer ptPrice;

    /**
     * 参团人数
     */
    private Integer ptNum;

    /**
     * 拼团单状态
     *
     * @see PtOrderStatusEnum#getStatus()
     */
    private Integer ptStatus;

    /**
     * 拼团开始时间
     */
    private Timestamp startTime;

    /**
     * 拼团结束时间
     */
    private Timestamp endTime;

    /**
     * 拼团时长：分钟单位
     */
    private Integer expireMin;

    private Integer deleted;

    private Timestamp createAt;

    private Timestamp updateAt;

    /**
     * 拼团订单详情
     */
    private List<PtOrderItemEntity> itemList;
}
